// JavaScript Document
window.onload = InitAll;

function InitAll(){
document.getElementById("colony_selector").style.display = "block";
document.getElementById("recycle_selector").style.display = "none";
document.getElementById("freighter_selector").style.display = "none";
}


function collect(){
    window.location = "/collect/resources";
}

function ColonyShipSelection(){
document.getElementById("colony_selector").style.display = "block";
document.getElementById("recycle_selector").style.display = "none";
document.getElementById("freighter_selector").style.display = "none";

    // get ship selection divs
    /*
    divs = document.getElementsByName("ship_selectors");
    for (div in divs){
        if( div.id = "colony_selector" )
            div.style.display = "block";
        else
            div.style.display = "none";
    }       
    */
}
function RecycleShipSelection(){
document.getElementById("colony_selector").style.display = "none";
document.getElementById("recycle_selector").style.display = "block";
document.getElementById("freighter_selector").style.display = "none";
    
}
function FreighterShipSelection(){
document.getElementById("colony_selector").style.display = "none";
document.getElementById("recycle_selector").style.display = "none";
document.getElementById("freighter_selector").style.display = "block";
    

}

function ShowItem(id){
	var ref = document.getElementById(id);
	
	ref.style.display = "block";
	
}

function HideItem(id){
	var ref = document.getElementById(id);
	
	ref.style.display = "none";
	
}